using Core;

namespace DoItNow.Features
{
	internal class PreviousCamelCaseWordFeature : BindableCommandFeature
	{
        public PreviousCamelCaseWordFeature(Ide ide, OutputPane outputPane)
			: base("Previous Camel Case Word", "Text Editor::ctrl+alt+left arrow", ide, outputPane)
		{
		}

		public override bool IsAvailable
		{
			get { return Ide.ActiveDocument != null; }
		}

		public override void OnExecute()
		{
			Ide.ActiveDocument.GotoPreviousCamelCaseWord(false);
		}
	}
}